import { defineStore } from 'pinia';

type LoginData = {
  accessToken: string;
  refreshToken: string;
  userId:number;
  openid:string;
  expiresTime:number
};
export const loginStore = defineStore({
  id: 'login',
  state: () => ({
    needPoup: false, // 是否需要弹窗
    token: '', // 用户令牌
    userInfo: {} as LoginData,//用户身份
  }),
});
export const commonStore = defineStore({
  id: 'commonStore',
  state: () => ({
    certifications: [] as string[],
    currency: "$",
    footerData: {
      icp: "",
      phone: "",
      email: "",
    },
  }),
});


